package com.atguigu.tingshu.account.service;

import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.account.UserAccount;
import com.atguigu.tingshu.vo.account.AccountLockResultVo;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

public interface UserAccountService extends IService<UserAccount> {


    /**
     * 检测并锁定账户
     *
     * @param accountLockVo
     * @return
     */
    AccountLockResultVo checkAndLockAccount(AccountLockVo accountLockVo);

    /**
     * 获取可用余额
     *
     * @param userId
     * @return
     */
    BigDecimal getAvailableAmount(Long userId);
}
